package com.pay.request;

/**
 * 支付方式
 * Created by chenweiyi on 2018/2/5.
 */
public enum PayType {

    WEIXIN("1"),
    ALIPAY("2");
    private String type;

    PayType(String type){
        this.type = type;
    }

    public static boolean isTypeIn(String type){

      PayType [] types =   PayType.values();

      for(PayType t : types){
          if(t.getType().equals(type)){
              return true;
          }
      }
        return false;
    }

    public String getType() {
        return type;
    }
}
